#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>

void Mul(int val)
{
	for (int i = 1; i <= val; i++)
	{
		for (int j = 1; j <= i; j++)
		{
			printf("%dx%2d=%3d ", j, i, i*j);
		}
		printf("\n");
	}
}

int main()
{
	int Val = 0;
	scanf("%d", &Val);

	Mul(Val);

	return 0;
}